<template>
  <div class="tree-table-layout">
    <div class="t-t-tree">
      <slot name="tree"></slot>
    </div>
    <div class="t-t-table">
      <slot name="table"></slot>
    </div>
  </div>
</template>

<script setup>
defineOptions({ name: 'TreeTableLayout' })

</script>

<style lang="scss" scoped>
.tree-table-layout {
  display: flex;
  height: 100%;
  flex: 1;

  .t-t-tree {
    height: 100%;
    min-width: 200px !important;
    width: 200px !important;
    background-color: #212121;
  }

  .t-t-table {
    width: calc(100% - 210px);
    border-left: solid 1px #383838;
  }
}
</style>
